package com.xiaohong.order.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;

import static io.swagger.v3.oas.annotations.media.Schema.AccessMode.READ_ONLY;

@Schema(name = "OrderTbl")
public class OrderTbl implements Serializable{

    @TableId(value = "id",type = IdType.AUTO)
    @Schema(description = "",accessMode = READ_ONLY)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
	private Integer id;//

    @Schema(allowableValues = {"xiaohong","string"},description = "用户id")
    @TableField("user_id")
	private String userId;//

    @Schema(defaultValue = "110",description = "商品code")
    @TableField("commodity_code")
	private String commodityCode;//

    @Schema(defaultValue = "1",description = "购买数量")
    @TableField("count")
	private Integer count;//

    @Schema(description = "购买金额",allowableValues = {"100","200"})
    @TableField("money")
	private Integer money;//



	//get方法
	public Integer getId() {
		return id;
	}

	//set方法
	public void setId(Integer id) {
		this.id = id;
	}
	//get方法
	public String getUserId() {
		return userId;
	}

	//set方法
	public void setUserId(String userId) {
		this.userId = userId;
	}
	//get方法
	public String getCommodityCode() {
		return commodityCode;
	}

	//set方法
	public void setCommodityCode(String commodityCode) {
		this.commodityCode = commodityCode;
	}
	//get方法
	public Integer getCount() {
		return count;
	}

	//set方法
	public void setCount(Integer count) {
		this.count = count;
	}
	//get方法
	public Integer getMoney() {
		return money;
	}

	//set方法
	public void setMoney(Integer money) {
		this.money = money;
	}


}
